package com.cq.cqmall.product.feign;

import com.cq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 制品Feign服务
 *
 * @author 程崎
 * @since 2022/10/11
 */
@FeignClient("cq-mall-ware")
public interface WareFeignService {
    /**
     * 查询sku是否有库存
     *
     * @param skuIds sku id
     * @return {@link R}
     */
    @PostMapping("/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
}
